package com.riant.dayo2.demo3;

/**
 * @Classname User2
 * @Description TODO
 * @Date 2021/2/27 9:26
 * @Created by 张斌
 */
public class User2 {
    private static String department;
    private String name="zhangsan";
    private int age=20;
    {
        name="wangwu";
        age=18;
    }
    static {
        department="development";
    }

    public User2() {
    }

    public static String getDepartment() {
        return department;
    }

    public static void setDepartment(String department) {
        User2.department = department;
    }

    public User2(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }
}
